﻿using Knife.Core.Model;
using Knife.Core.Template;
using Knife.Entity;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Knife.Controllers
{
    [RoutePrefix("system/config")]
    public class SystemConfigController : BaseTemplateController<SystemConfig>
    {

        [Route("listPage")]
        public ActionResult ListPage()
        {
            return View("~/Views/SystemConfig/Config_List.cshtml");
        }
        [Route("addPage")]
        public ActionResult ListAdd()
        {
            return View("~/Views/SystemConfig/Config_Add.cshtml");
        }
        [Route("editPage")]
        public ActionResult ListEdit()
        {
            return View("~/Views/SystemConfig/Config_Edit.cshtml");
        }
        [HttpPost, Route("list")]
        public override ActionResult List()
        {
            return base.List();
        }
        [HttpPost, Route("insert")]
        public override ActionResult Insert(SystemConfig entity)
        {
            return base.Insert(entity);
        }
        [HttpPost, Route("update")]
        public override ActionResult Update(SystemConfig entity)
        {
            return base.Update(entity);
        }
        [HttpPost, Route("detail")]
        public override ActionResult Detail()
        {
            return base.Detail();
        }
        [HttpPost, Route("delete")]
        public override ActionResult Delete()
        {
            return base.Delete();
        }
        [HttpPost, Route("batchDelete")]
        public override ActionResult BatchDelete()
        {
            return base.BatchDelete();
        }

    }
}